

find_package(Protobuf REQUIRED)
include_directories(${PROTOBUF_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_BUILD_RPATH}/protobuf_cpp)

message(status ${CMAKE_CURRENT_BINARY_DIR})

PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS game.proto)
ADD_EXECUTABLE(read_write_proto  read_write_proto.cpp ${PROTO_SRCS} ${PROTO_HDRS})
target_link_libraries(read_write_proto ${PROTOBUF_LIBRARIES})






